package com.dongdong.android.framework.http.webservice;

import com.dongdong.android.framework.http.requestentity.reqUserEntity;
import com.dongdong.android.framework.http.resultentity.BaseRsultEntity;
import com.dongdong.android.framework.http.resultentity.UserInfoEntity;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by dongdong on 2018/3/26.
 */

public interface UserService {


    @POST("/login")
    Observable<BaseRsultEntity<UserInfoEntity>> login(@Body reqUserEntity entity);

    @GET("/getCode")
    Observable<BaseRsultEntity<String>> getCode(@Query("phone") String phone);

    @POST("/register")
    Observable<BaseRsultEntity<UserInfoEntity>> register();

}
